﻿using System.Windows;
using SnakeGame.Models;

namespace SnakeGame.Views
{
    /// <summary>
    /// Interaction logic for QuestionPage.xaml
    /// </summary>
    public partial class QuestionWindow : Window
    {
        public bool IsWin { get; set; }

        private QuestionFrame _frame;

        public QuestionWindow()
        {
            InitializeComponent();

            _frame = FindName("QFrame") as QuestionFrame;
            if (_frame != null)
            {
                _frame.Window = this;
            }

        }


        public void Initialize(MainFrame mf, Question q, int playerIndex)
        {
            _frame.QuestionItem = q;
            _frame.PlayerIndex = playerIndex;
        }

    }
}
